//引用AES源码js  -------定义 Crypto-js 库
const CryptoJS = require('crypto-js');  
function d(param){
    var param = CryptoJS.enc.Utf8.parse(param),
        param_key= CryptoJS.enc.Utf8.parse("jasonyaoTodo_Key"),
        param_iv = CryptoJS.enc.Utf8.parse("jasonyao1Todo_Iv");
    var encrypted = CryptoJS.AES.encrypt(param, param_key, {
        iv: param_iv,
        mode: CryptoJS.mode.CBC,
        padding: CryptoJS.pad.Pkcs7
    });
    return encodeURIComponent(encrypted.toString());
}

